{template header}
<style type="text/css">
.textareaee{ width:80px; height:20px;}
.texta { width:180px; height:20px;}
</style>

<script language="javascript">
	J(function(){
	
		bopuruiObj.command.mtabletr();
		bopuruiObj.command.selectBoxAll();
		
		J('input[name=productId[]]').each( function(){
		
			J('#bz_'+this.value).bind('click', {id:this.value}, function(c){
				var rsw = J('#bz_'+c.data.id).html();

				if(rsw.indexOf('<') < 0 ){
					J('#bz_'+c.data.id).html('<textarea name=bz'+c.data.id+' id=bz'+c.data.id+' rows=2 class="texta">'+rsw+'</textarea>');
				}
				
				J('#bz'+c.data.id).focus();
				
				J('#bz'+c.data.id).bind('blur',{id:c.data.id},
						function(c){
							var str = this.value;
							J.ajax({
							   type: "POST",
							   url: "order-orderview.htm?updatetype=ajaxupdate&id="+c.data.id,
							   data: "content="+encodeURIComponent(str)+"",
							   cache: false,
							   beforeSend : function(){J('#bz_'+c.data.id).html("<img src=../../images/common/loading.gif />");},
							   success: function(text){
									J('#bz_'+c.data.id).html(text);
							   },
							   ajaxError: function(){alert('发生错误，请刷新后重试!');}
							}); 
					});
				
			});
		
	});
		


	J('input[name=productId[]]').each( function(){
		
			J('#px_'+this.value).bind('click', {id:this.value}, function(c){
				var rsw = J('#px_'+c.data.id).html();

				if(rsw.indexOf('<') < 0 ){
					J('#px_'+c.data.id).html('<textarea name=px'+c.data.id+' id=px'+c.data.id+' rows=2 class="textareaee">'+rsw+'</textarea>');
				}
				
				J('#px'+c.data.id).focus();
				
				J('#px'+c.data.id).bind('blur',{id:c.data.id},
						function(c){
							var str = this.value;
							J.ajax({
							   type: "POST",
							   url: "order-orderview.htm?updatetype=ajaxdel_date&id="+c.data.id,
							   data: "del_date="+encodeURIComponent(str)+"",
							   cache: false,
							   beforeSend : function(){J('#px_'+c.data.id).html("<img src=../../images/common/loading.gif />");},
							   success: function(text){
								  
									J('#px_'+c.data.id).html(text);
								   
							   },
							   ajaxError: function(){alert('发生错误，请刷新后重试!');}
							}); 
					});
				
			});
		
	});




	J('input[name=productId[]]').each( function(){
		
			J('#arr_'+this.value).bind('click', {id:this.value}, function(c){
				var rsw = J('#arr_'+c.data.id).html();

				if(rsw.indexOf('<') < 0 ){
					J('#arr_'+c.data.id).html('<textarea name=arr'+c.data.id+' id=arr'+c.data.id+' rows=2 class="textareaee">'+rsw+'</textarea>');
				}
				
				J('#arr'+c.data.id).focus();
				
				J('#arr'+c.data.id).bind('blur',{id:c.data.id},
						function(c){
							var str = this.value;
							J.ajax({
							   type: "POST",
							   url: "order-orderview.htm?updatetype=ajaxarr_date&id="+c.data.id,
							   data: "arr_date="+encodeURIComponent(str)+"",
							   cache: false,
							   beforeSend : function(){J('#arr_'+c.data.id).html("<img src=../../images/common/loading.gif />");},
							   success: function(text){
								  
									J('#arr_'+c.data.id).html(text);
								   
							   },
							   ajaxError: function(){alert('发生错误，请刷新后重试!');}
							}); 
					});
				
			});
		
	});
	
	
	})
</script>
<div class="path">
	<span><a href="order-qiye.htm">订单管理</a></span>
	<span>详单查看</span>
</div>
<div class="content">
	<div class="c1">
		<table width="100%" border="0" cellspacing="1" cellpadding="2"  class="table3" style="text-align:center;margin-top:10px;">
		<tr><th align="left">产品信息</th></tr>
		<tr><td>
<form action="order-alldelete.htm" method="post" name="form1">
		<table width="100%" border="0" cellspacing="0" cellpadding="2" class="table1" style="text-align:center">
          <tr>
            <td width="3%">&nbsp;</td>
            <td width="3%">序号</td>
            <td width="11%">订货号</td>
            <td width="14%">型号</td>
            <td width="7%">数量</td>
            <td width="8%" align="center">单价</td>
            <td width="10%" align="center">总价</td>
            <td width="11%" align="center">到货日期</td>
            <td width="11%" align="center">发货日期</td>
            <td width="22%" align="center">备注</td>
          </tr>
          <!--{loop $order $v}-->
          <tr>
            <td style="height:22px;"><input type="checkbox" name="productId[]" Tags="mark" value="<!--{$v[orderno]}-->" />
			</td>
            <td style="height:22px;">$v[xuhao]&nbsp;</td>
            <td style="height:22px;">$v[orderno]</td>
            <td style="height:22px;">$v[models]</td>
            <td style="height:22px;">$v[amount]</td>
       
 <td style="height:22px;" >￥$v[price]</td>
            <td style="height:22px;" >￥$v[total]</td>
            <td id="arr_$v[id]" style="height:22px;">$v[arr_date]</td>
            <td id="px_$v[id]" style="height:22px;">$v[del_date]</td>
            <td id="bz_$v[id]" style="height:22px;">$v[content]</td>
          </tr>
		     <!--{/loop}-->
          <tr>
            <td colspan="3" style="height:22px;"><input name="checkbox" type="checkbox" id="selectAll" value="all" />
              全选</td>
            <td style="height:22px;"><input type="submit" name="Submit" value="批量删除" /></td>
            <td style="height:22px;">&nbsp;</td>
            <td style="height:22px;" >&nbsp;</td>
            <td style="height:22px;" >&nbsp;</td>
            <td id="arr_$v[id]" style="height:22px;">&nbsp;</td>
            <td id="px_$v[id]" style="height:22px;">&nbsp;</td>
            <td id="bz_$v[id]" style="height:22px;">&nbsp;</td>
          </tr>
       
        </table>
	</form>
		</td>
			</tr>
		<tr>
		  <td align="right" colspan="5">总数量：$mount 总金额：￥$totals&nbsp;&nbsp;&nbsp;</td>
		</tr>
		</table>
	</div>
</div>
{template footer}